package com.lut.edu.apm.commodityCenter.service;

import com.lut.edu.apm.commodityCenter.pojo.CommodityLibrary;
import com.lut.edu.apm.commodityCenter.pojo.CommodityOrder;

/**
 * 商品查询
 * @author Zhao Suzhen
 * @date `2024/4/13`
 */
public interface ProductInquiry {
    /**
     * 查询商品(入库时)
     * @param productId 商品码
     * @return CommodityLibrary
     */
    CommodityLibrary queryProductIn(String productId);
    /**
     * 查询商品(购买时)
     * @param productId 商品码
     * @return CommodityOrder
     */
    CommodityOrder queryProduct(String productId);
}
